cmake_minimum_required(VERSION 3.10)
project(boost_asio_demo)

set(BOOST_COMPONENTS date_time chrono filesystem iostreams
        program_options regex system thread unit_test_framework)
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
if(NOT Boost_FOUND)
    message("Not found Boost")
endif()

message("CMAKE_ROOT=" ${CMAKE_ROOT})
message("BOOST_LIB=" ${Boost_LIBRARIES})

set(SRV_SRC CServer.cpp CSession.cpp LogicSystem.cpp MsgNode.cpp day13-LogicServer.cpp)

add_executable(boost_asio_server ${SRV_SRC})
target_link_libraries(boost_asio_server ${Boost_LIBRARIES})

##https://gitee.com/secondtonone1/boostasio-learn
